package com.example.dml.decorator_pattern.low;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-11-01
 * @Description：todo
 */
public class BatterCakeWithEgg extends BatterCake{

    @Override
    protected String getMsg() {
        return super.getMsg()+"+1个煎蛋";
    }

    //加个鸡蛋+1元
    @Override
    public int getPrice() {
        return super.getPrice()+1;
    }
}
